3.890 \(\int \frac{b+2 c x^n}{x \left (b+c x^n\right )} \, dx\)

Optimal. Leaf size=15 \[ \frac{\log \left (b+c x^n\right )}{n}+\log (x) \]

[Out]

Log[x] + Log[b + c*x^n]/n

_______________________________________________________________________________________

Rubi [A]  time = 0.0610835, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095 \[ \frac{\log \left (b+c x^n\right )}{n}+\log (x) \]

Antiderivative was successfully verified.

[In]  Int[(b + 2*c*x^n)/(x*(b + c*x^n)),x]

[Out]

Log[x] + Log[b + c*x^n]/n

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 9.99522, size = 15, normalized size = 1. \[ \frac{\log{\left (x^{n} \right )}}{n} + \frac{\log{\left (b + c x^{n} \right )}}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((b+2*c*x**n)/x/(b+c*x**n),x)

[Out]

log(x**n)/n + log(b + c*x**n)/n

_______________________________________________________________________________________

Mathematica [A]  time = 0.0222078, size = 15, normalized size = 1. \[ \frac{\log \left (b+c x^n\right )}{n}+\log (x) \]

Antiderivative was successfully verified.

[In]  Integrate[(b + 2*c*x^n)/(x*(b + c*x^n)),x]

[Out]

Log[x] + Log[b + c*x^n]/n

_______________________________________________________________________________________

Maple [A]  time = 0.003, size = 17, normalized size = 1.1 \[{\frac{\ln \left ({x}^{n} \left ( b+c{x}^{n} \right ) \right ) }{n}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((b+2*c*x^n)/x/(b+c*x^n),x)

[Out]

1/n*ln(x^n*(b+c*x^n))

_______________________________________________________________________________________

Maxima [A]  time = 1.44198, size = 63, normalized size = 4.2 \[ b{\left (\frac{\log \left (x\right )}{b} - \frac{\log \left (\frac{c x^{n} + b}{c}\right )}{b n}\right )} + \frac{2 \, \log \left (\frac{c x^{n} + b}{c}\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x^n + b)/((c*x^n + b)*x),x, algorithm="maxima")

[Out]

b*(log(x)/b - log((c*x^n + b)/c)/(b*n)) + 2*log((c*x^n + b)/c)/n

_______________________________________________________________________________________

Fricas [A]  time = 0.232564, size = 23, normalized size = 1.53 \[ \frac{n \log \left (x\right ) + \log \left (c x^{n} + b\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x^n + b)/((c*x^n + b)*x),x, algorithm="fricas")

[Out]

(n*log(x) + log(c*x^n + b))/n

_______________________________________________________________________________________

Sympy [A]  time = 0.975108, size = 29, normalized size = 1.93 \[ \begin{cases} \log{\left (x \right )} & \text{for}\: c = 0 \wedge n = 0 \\\frac{\left (b + 2 c\right ) \log{\left (x \right )}}{b + c} & \text{for}\: n = 0 \\\log{\left (x \right )} & \text{for}\: c = 0 \\\log{\left (x \right )} + \frac{\log{\left (\frac{b}{c} + x^{n} \right )}}{n} & \text{otherwise} \end{cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b+2*c*x**n)/x/(b+c*x**n),x)

[Out]

Piecewise((log(x), Eq(c, 0) & Eq(n, 0)), ((b + 2*c)*log(x)/(b + c), Eq(n, 0)), (
log(x), Eq(c, 0)), (log(x) + log(b/c + x**n)/n, True))

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{2 \, c x^{n} + b}{{\left (c x^{n} + b\right )} x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((2*c*x^n + b)/((c*x^n + b)*x),x, algorithm="giac")

[Out]

integrate((2*c*x^n + b)/((c*x^n + b)*x), x)